
<script type="text/javascript">

$(function(){
	
	$.ajax({
		type:"POST",
		url:"actions/informacaoAction.php",
		dataType:"json",
		success: function(data, textStatus, request){
			$("#escola_texto").html(data['escola']);
			if(data['usuario']!="" && data['usuario']!=null){
				$("#aluno_texto").html("Usuário: "+data['usuario']+"&nbsp;&nbsp;&nbsp; <a href='javascript:void(0);' title='Clique aqui para logout' onclick='logout();'> Sair </a>");
			}
		}	
	});

})

function logout(){
	$.ajax({
	type:"POST",
	url:"actions/logoutAction.php",
	dataType:"json",
	success: function(data, textStatus, request){
		window.location = "/?pg=login";
	}	
});	
}
</script>

<style>
	a{color:#FFF;font-size:12px;text-decoration:none;}
</style>

<div style="padding:14px;color:#FFF;margin-left:auto;margin-right:auto;position:relative;width:1000px;height:20px;">

    <div style="position:relative;width:150px;float:left;height:20px;text-align:left;">
            <b>Sabius</b>
    </div>
    
    <div style="position:relative;width:650px;float:left;height:20px;text-align:center;">
        <span id="escola_texto"></span>
    </div>
    
    <div style="position:relative;width:200px;float:left;height:20px;text-align:right;">
            <span id="aluno_texto"></span>
    </div>

</div>


